<template>


  <div class="infoshow">
    <HeadNav></HeadNav>
    <div class="lm">
      <LeftMenu></LeftMenu>
    </div>

    <h1>欢迎来到个人信息管理</h1>
    <el-row type="flex" class="row-bg" justify="center">
      <el-col :span="4">
        <div class="userinfo">
          <div class="user-item">
            <span class="userName">用户名:<span style="color:black">{{ user.name }}</span></span>
          </div>
          <div class="user-item">
            <span class="userIdentify">用户身份：<span style="color:black">{{ user.identify }}</span></span>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import HeadNav from '../components/HeadNav.vue'
import LeftMenu from '../components/LeftMenu.vue'
export default {
  name: 'infoshow',
  computed: {
    user() {
      return this.$store.getters.user;
    }
  },
  components: {
    HeadNav,
    LeftMenu
  }
}
</script>
<style scoped>
.userIdentify {
  /* position: absolute;
  top: 10px; */
  font-family: 'Microsoft YaHei';
  font-weight: bold;
  font-size: 30px;
  color: gray;
}

.userName {
  position: absolute;
  top: 140px;
  font-family: 'Microsoft YaHei';
  font-weight: bold;
  font-size: 30px;
  color: gray;
}

h1 {
  margin-top: 60px;
  margin-left: 530px;
  font-family: 'Microsoft YaHei';
  font-weight: bold;
  font-size: 30px;
  color: gray;
}

.userinfo {
  position: absolute;
  top: 100px;
}

/* .el-menu-vertical-demo {
  position: absolute;
  top: 30px;
  height: 530px;
  width: 200px;
} */
</style>